//
//  NSString+DateTransform.m
//  YunGou
//
//  Created by macbook on 16/5/19.
//  Copyright © 2016年 macbook. All rights reserved.
//

#import "NSString+DateTransform.h"

@implementation NSString (DateTransform)
//倒计时
+ (NSString *)getCountdownWithDateStr:(NSString *)dateStr{
    
    return nil;
}

+ (NSString *)timeTransformWithString:(NSString *)str andFormatter:(NSString *)formate{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    formatter.dateFormat = formate;
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:[str doubleValue]];
    NSString *timeStr = [formatter stringFromDate:date];
    return timeStr;
}

@end
